workspace(name="cache")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

#http_archive(
#        name = "nlohmann",
#        url="https://github.com/nlohmann/json/archive/refs/tags/v3.11.2.tar.gz",
#        build_file = "//third_party/nlohmann:nlohmann.BUILD",
#        strip_prefix="json-3.11.2"
#)


# /WORKSPACE file
http_archive(
    name = "com_github_nlohmann_json",
    build_file = "//third_party/nlohmann:nlohmann.BUILD", # see below
    sha256 = "4cf0df69731494668bdd6460ed8cb269b68de9c19ad8c27abc24cd72605b2d5b",
    strip_prefix = "json-3.9.1",
    urls = ["https://github.com/nlohmann/json/archive/v3.9.1.tar.gz"],
)